from pylab import *

A1 = loadtxt('debug_IMG_1.txt')
A2 = loadtxt('debug_IMG_2.txt')
A3 = loadtxt('debug_IMG_3.txt')
A4 = loadtxt('debug_IMG_4.txt')

x = linspace(1,len(A4[:,0]),len(A4[:,0]))

idx0 = 0
idx1 = idx0+len(A4)

# plot(x[idx0:idx1], A1[idx0:idx1,0],'r--s', alpha=0.6)
# plot(x[idx0:idx1], A2[idx0:idx1,0],'g--o', alpha=0.6)
# plot(x[idx0:idx1], A3[idx0:idx1,0],'b--d', alpha=0.6)
# plot(x[idx0:idx1], A4[idx0:idx1,0],'k--v', alpha=0.6)


A = [A1, A2, A3, A4]

for i in range(4):
    subplot(2,2,i+1)
    for j in range(8):
        plot(x[idx0:idx1], A[i][idx0:idx1,j]+j*100*0,'--.', alpha=0.6)
        title('A_'+str(i+1))
        # plot(x[idx0:idx1], A2[idx0:idx1,0],'g--o', alpha=0.6)
        # plot(x[idx0:idx1], A3[idx0:idx1,0],'b--d', alpha=0.6)
        # plot(x[idx0:idx1], A4[idx0:idx1,0],'k--v', alpha=0.6)

show()